/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package src.services.customer;

/**
 *
 * @author jay
 */

import java.util.List;
import java.util.Map;
import javax.faces.model.SelectItem;
import src.domain.customer.Country;
import src.services.CRUEDService;

public class CountryModel implements java.io.Serializable {
    
    private CRUEDService service;
    
    public CountryModel() {
        service = new CRUEDService();
    }
    
    public List<Country> findAll(Map<String, String> filters) {
        return (List<Country>) service.findAll("Country", filters);
    }

    public List<SelectItem> listAll() {
        return service.listAll("Country", "countryId", "countryName");
    }
    public boolean saveData(Country data) {
        return service.saveData(data);
    }
    
    public boolean deleteData(Country data) {
        return service.deleteData(data);
    }
    
}
